from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_mail import Mail

# 初始化扩展
db = SQLAlchemy()
login_manager = LoginManager()
mail = Mail()

# 配置登录视图
login_manager.login_view = 'auth_bp_zc.login'
login_manager.login_message = '请先登录'
login_manager.login_message_category = 'info' 